package com.dc.ssjr.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

/**
 * 实体类
 *
 * @author duchao
 */
@Data
@TableName(value = "t_product")
public class Product extends Model<Product> {

    @TableId(value = "id")
    private Long id;
    @TableField(value = "name")
    private String mame;

    public Product() {
    }

    public Product(String mame) {
        this.mame = mame;
    }

    public Product(Long id, String mame) {
        this.id = id;
        this.mame = mame;
    }
}
